package cn.itsource.org.mapper;

import cn.itsource.basic.basicMapper.BasicMapper;
import cn.itsource.basic.util.AjaxResult;
import cn.itsource.org.Dto.LoginDto;
import cn.itsource.org.domain.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper extends BasicMapper<User> {
//     检测手机号是否已在数据库
     User checkphone(String phone);
     @Select("select * from t_user where username = #{username} or email = #{username} or phone = #{username}")
     User findByUsername(LoginDto loginDto);
}
